/**
 *  干扰查询的实现类
 */
package com.gsmr.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import com.gsmr.entity.*;
import org.springframework.stereotype.Service;

import com.gsmr.dao.InterferenceQueryDao;
import com.gsmr.service.InterferenceQueryService;

/**
 * 用户service的实现类
 * @author dell
 *
 */
@Service("interferencequeryService")
public class InterferenceQueryServiceImpl implements InterferenceQueryService {
	@Resource
	private InterferenceQueryDao interferencequeryDao;

	public List<Integer> get_fs_front_ids(Map map){
		return interferencequeryDao.get_fs_front_ids(map);
	}

	@Override
	public List<InterfaceOccupy> findByOccupy(Map map) {
		return interferencequeryDao.findByOccupy(map);
	}

	public String get_bs_name(Map map) {
		return interferencequeryDao.get_bs_name(map);
	}

	public Long get_min_time_begin(Map map) {
		return interferencequeryDao.get_min_time_begin(map);
	}

	public List<Interference> get_interference_new(Map map) {
		return interferencequeryDao.get_interference_new(map);
	}
	
	public Long get_max_time_end(Map map) {
		return interferencequeryDao.get_max_time_end(map);
	}
	public List<Interference> find(Map map) {
		return interferencequeryDao.find(map);
	}
	public Long getTotal(Map map) {
		return interferencequeryDao.getTotal(map);
	}

	@Override
	public Long getOccupyTotal(Map map) {
		return interferencequeryDao.getOccupyTotal(map);
	}

	public List<AlarmHistory> findalarmhistory(Map map)
	{
		return interferencequeryDao.findalarmhistory(map);
	}
	public Long getTotalalarmhistory(Map<String,Object> map)
	{
		return interferencequeryDao.getTotalalarmhistory(map);
	}
	public List<InfConfig> get_Status(Map map) {
		return interferencequeryDao.get_Status(map);
	}
	public int changeDB(Map map) {
		return interferencequeryDao.changeDB(map);
	}
	public int saveinfconfig(Map map) {
		return interferencequeryDao.saveinfconfig(map);
	}
	public int savealarmconfig(Map map) {
		return interferencequeryDao.savealarmconfig(map);
	}
	public List<InfMeasurement> findmeasurement(Map map){
		return interferencequeryDao.findmeasurement(map);
	}
	public Long getTotalinfmeasurement(Map map) {
		return interferencequeryDao.getTotalinfmeasurement(map);
	}
	public List<BSModel> findbsmodel(Map map){
		return interferencequeryDao.findbsmodel(map);
	}
	public List<InfFrequencySpectrum> findmorethanfs(Map map){
		return interferencequeryDao.findmorethanfs(map);
	}
	public List<InfFrequencySpectrum> findlessthanfs(Map map){
		return interferencequeryDao.findlessthanfs(map);
	}
	public List<InfFrequencySpectrum> findfs(Map map){
		return interferencequeryDao.findfs(map);
	}
	public String get_bcch(Map map) {
		return interferencequeryDao.get_bcch(map);
	}
	public String get_tch1(Map map) {
		return interferencequeryDao.get_tch1(map);
	}
	public String get_tch2(Map map) {
		return interferencequeryDao.get_tch2(map);
	}
	public String get_tch3(Map map) {
		return interferencequeryDao.get_tch3(map);
	}
	public String get_lac(Map map) {
		return interferencequeryDao.get_lac(map);
	}
	public String get_ci(Map map) {
		return interferencequeryDao.get_ci(map);
	}
	public int get_largedate(Map map) {
		return interferencequeryDao.get_largedate(map);
	}
	public long get_latestFSTime(Map map) {
		return interferencequeryDao.get_latestFSTime(map);
	}
	public int get_earlydate(Map map) {
		return interferencequeryDao.get_earlydate(map);
	}
	public long get_earlyFSTime(Map map) {
		return interferencequeryDao.get_earlyFSTime(map);
	}
	public String get_frontId(Map map) {
		return interferencequeryDao.get_frontId(map);
	}
	public List<FScan> getFScan(Map map){
		return interferencequeryDao.getFScan(map);
	}
	public List<InfFrequencySpectrum> findfsmonitor(Map map){ //频谱监控
		return interferencequeryDao.findfsmonitor(map);
	}
	public List<Interference> findresult(Map map){
		return interferencequeryDao.findresult(map);
	}
	public int updatealarmhistory(Map map) {  //标记为已处理
	    return interferencequeryDao.updatealarmhistory(map);
	}
	public int updateinterference_new(Map map) {  //标记为已处理
	    return interferencequeryDao.updateinterference_new(map);
	}
	public BS_info getbsinfo(Map map) {
		return interferencequeryDao.getbsinfo(map);
	}
	public List<BS_station> getbsstation(Map map){
		return interferencequeryDao.getbsstation(map);
	}
	public int createModel(Map map) {
		return interferencequeryDao.createModel(map);
	}
	public int cancelModel(Map map) {
		return interferencequeryDao.cancelModel(map);
	}
	public int replaceModelBusyUp(Map map) {
		return interferencequeryDao.replaceModelBusyUp(map);
	}
	public int replaceModelBusyDown(Map map) {
		return interferencequeryDao.replaceModelBusyDown(map);
	}
	public int replaceModelLeisureUp(Map map) {
		return interferencequeryDao.replaceModelLeisureUp(map);
	}
	public int replaceModelLeisureDown(Map map) {
		return interferencequeryDao.replaceModelLeisureDown(map);
	} 
	public int insertHistorySource(InfHistorySource historySource) {
		return interferencequeryDao.insertHistorySource(historySource);
	}
	public List<InfHistorySource> findinfhistorysource(Map map){
		return interferencequeryDao.findinfhistorysource(map);
	}
	public int getTotalinfhistorysource(Map map) {
		return interferencequeryDao.getTotalinfhistorysource(map);
	}

	public List<RS_station> getrsstation(Map map) {
		return interferencequeryDao.getrsstation(map);
	};

	public List<Interference> getInterference(Map map) {
		return interferencequeryDao.getInterference(map);// 获取干扰
	}

	public List<InfHistorySource> getInfHistorySource(Map map) {
		return interferencequeryDao.getInfHistorySource(map); // 获取干扰
	}

	public List<Integer> getInterferenceCondition() {
		return interferencequeryDao.getInterferenceCondition();// 获取有干扰的前置机号
	}

	@Override
	public Integer findTotalCount(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return interferencequeryDao.findTotalCount(map);
	}

	@Override
	public InfFrequencySpectrum findOffset(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return interferencequeryDao.findOffset(map);
	}

	@Override
	public List<FscanRxlev> findFscanRxlev(Map<String, Object> map) {
		return interferencequeryDao.findFscanRxlev(map);
	}

	@Override
	public List<FScan> findFscanCount(Map<String, Object> map) {
		
		return interferencequeryDao.findFscanCount(map);
	}

	@Override
	public int delete(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return interferencequeryDao.delete(map);
	}

	@Override
	public int updateInfHistorySource(Map<String, Object>map) {
		// TODO Auto-generated method stub
		return interferencequeryDao.updateInfHistorySource(map);
	}

	@Override
	public int insertHistoryInterference(Interference interference) {
		// 
		return interferencequeryDao.insertHistoryInterference(interference);
	}
	
	@Override
	public List<String> findFscanTableNames(Map<String, Object> map) {
		return interferencequeryDao.findFscanTableNames(map);
	}
}
